// Global API configuration
// 
PingppPackage = Meteor.npmRequire('pingpp');
pingpp_server = PingppPackage('sk_test_jnjjHGiH40SSC0WHy1LePS80');

var Api = new Restivus({
  useDefaultAuth: false,
  prettyJson: true,
  defaultHeaders: {
      'Content-Type': 'application/json'
  },
});
var no = 0;
// Maps to: /api/posts/:id
Api.addRoute('webhook', {authRequired: false}, {
  post: function () {
    console.log(this.bodyParams);
    return {
      statusCode: 200,
      headers: {
        'Content-Type': 'text/plain; charset=utf-8',
        'X-Custom-Header': 'custom value'
      },
      //body: 'There is nothing here!'
    };
  },
});